# talkative!!!

# Desktop file

desktopdir = $(datadir)/applications
desktop_DATA = talkative.desktop

# GConf files

schemadir   = @GCONF_SCHEMA_FILE_DIR@
schema_DATA = talkative.schemas

if GCONF_SCHEMAS_INSTALL
install-data-local:
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
else
install-data-local:
endif

#				$(GCONFTOOL) --install-schema-file=$$p ; 

EXTRA_DIST = talkative.desktop.in $(schemas_in_files)
# CLEANFILES = $(desktop_DATA) $(schemas_DATA)

# Warning: This is an automatically generated file, do not edit!

if ENABLE_DEBUG
ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
ASSEMBLY = ./bin/Debug/talkative.exe
COMPILE_TARGET = exe
PROJECT_REFERENCES = 
BUILD_DIR = ./bin/Debug
endif

if ENABLE_RELEASE
ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4
ASSEMBLY = ./bin/Release/talkative.exe
COMPILE_TARGET = exe
PROJECT_REFERENCES = 
BUILD_DIR = ./bin/Release
endif



BINARIES = \
	$(TALKATIVE)  
PROGRAMFILES = \
	$(JABBER_NET_DLL)  

	
all: $(ASSEMBLY) $(BINARIES) $(PROGRAMFILES) 

FILES =  \
	AssemblyInfo.cs \
	Core/App.cs \
	Core/ConnectionManager.cs \
	Core/GnomeConfiguration.cs \
	Core/IArchivingService.cs \
	Core/IConfiguration.cs \
	Core/SqliteArchive.cs \
	Core/Util.cs \
	Events/ChatEvent.cs \
	Events/Event.cs \
	Events/EventBox.cs \
	Events/MessageEvent.cs \
	Events/SubscribeEvent.cs \
	Exposition/Foo.cs \
	Exposition/Html.cs \
	Exposition/LabelMenuItem.cs \
	Exposition/NotifyWindow.cs \
	Exposition/UltraTextBuffer.cs \
	Exposition/UltraTextView.cs \
	Exposition/UltraTreeView.cs \
	Exposition/XButton.cs \
	gtk-gui/Close.cs \
	gtk-gui/generated.cs \
	gtk-gui/Habazie.kf2.GUI.AccountDialog.cs \
	gtk-gui/Habazie.kf2.GUI.AccountListDialog.cs \
	gtk-gui/Habazie.kf2.GUI.AddContactDialog.cs \
	gtk-gui/Habazie.kf2.GUI.MessageView.cs \
	gtk-gui/Habazie.kf2.GUI.MessageWindow.cs \
	gtk-gui/Habazie.kf2.GUI.NewMessage.cs \
	gtk-gui/Habazie.kf2.GUI.PrivacyListEditor.cs \
	gtk-gui/Habazie.kf2.GUI.PrivacyListManager.cs \
	gtk-gui/Habazie.kf2.GUI.RosterWindow.cs \
	gtk-gui/Habazie.kf2.GUI.SettingsDialog.cs \
	gtk-gui/Habazie.kf2.GUI.StatusDialog.cs \
	gtk-gui/Habazie.kf2.GUI.SubscribeDialog.cs \
	gtk-gui/Habazie.kf2.GUI.VCard.cs \
	gtk-gui/Habazie.kf2.GUI.XmlConsole.cs \
	GUI.Widgets/AccountMenu.cs \
	GUI.Widgets/AccountSelector.cs \
	GUI.Widgets/EventButton.cs \
	GUI.Widgets/GeckoChatView.cs \
	GUI.Widgets/GtkChatView.cs \
	GUI.Widgets/ItemMenu.cs \
	GUI.Widgets/MessageView.cs \
	GUI.Widgets/NotifyIcon.cs \
	GUI.Widgets/RosterView.cs \
	GUI.Widgets/StatusButton.cs \
	GUI.Widgets/WelcomePage.cs \
	GUI.Windows/AccountDialog.cs \
	GUI.Windows/AccountListDialog.cs \
	GUI.Windows/AddContactDialog.cs \
	GUI.Windows/Chat.cs \
	GUI.Windows/MessageWindow.cs \
	GUI.Windows/NewMessage.cs \
	GUI.Windows/PrivacyListEditor.cs \
	GUI.Windows/PrivacyListManager.cs \
	GUI.Windows/RosterWindow.cs \
	GUI.Windows/StatusDialog.cs \
	GUI.Windows/SubscribeDialog.cs \
	GUI.Windows/VCard.cs \
	GUI.Windows/XmlConsole.cs \
	GUI/IChatView.cs \
	GUI/INotifyService.cs \
	GUI/IRosterItem.cs \
	GUI/Notify.cs \
	GUI/Pixbufs.cs \
	GUI/Reveal.cs \
	GUI/SettingsDialog.cs \
	GUI/SubWindow.cs \
	GUI/TabContainer.cs \
	GUI/TabWindow.cs \
	Main.cs \
	Net.protocol/Factory.cs \
	Net.protocol/PrivacyList.cs \
	Net/Account.cs \
	Net/ExtendedClient.cs \
	Net/Factory.cs \
	Net/IQManager.cs \
	Net/Message.cs \
	Roster/Avatar.cs \
	Roster/Group.cs \
	Roster/Item.cs \
	Roster/Resource.cs \
	Roster/Roster.cs 

DATA_FILES = 

RESOURCES = \
	gtk-gui/objects.xml \
	../art/away.png \
	../art/chat-with-me.png \
	../art/dnd.png \
	../art/online.png \
	../art/xa.png \
	data/stock_mail-forward.png \
	data/stock_mail-reply.png \
	data/stock_mail-send.png \
	data/lock.png \
	data/unlock.png \
	../art/offline.png \
	../art/hourglass.png \
	../art/offline-account.png \
	../art/unknown.png \
	../art/error.png \
	data/pix_chat.png \
	data/pix_message.png \
	data/pix_system.png \
	data/xml-console.png \
	data/pix_chat48.png \
	data/pix_message48.png \
	data/status.png \
	data/talkative16.png \
	data/talkative16.svg 

EXTRAS = \
	./talkative.in 

REFERENCES =  \
	$(GTK_SHARP_20_LIBS) \
	$(GLIB_SHARP_20_LIBS) \
	$(GLADE_SHARP_20_LIBS) \
	$(GCONF_SHARP_20_LIBS) \
	-r:System \
	-r:Mono.Posix \
	-r:System.Xml \
	$(GECKO_SHARP_20_LIBS) \
	-r:Mono.Data \
	-r:Mono.Data.SqliteClient \
	-r:System.Data

DLL_REFERENCES =  \
	$(BUILD_DIR)/jabber-net.dll

JABBER_NET_DLL = $(BUILD_DIR)/jabber-net.dll
$(JABBER_NET_DLL): ../lib/jabber-net.dll
	mkdir -p $(BUILD_DIR)
	cp '$<' '$@'

TALKATIVE = $(BUILD_DIR)/talkative
$(TALKATIVE): talkative
	mkdir -p $(BUILD_DIR)
	cp '$<' '$@'



$(build_resx_resources) : %.resources: %.resx
	resgen2 '$<' '$@'

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES)
	mkdir -p $(dir $(ASSEMBLY))
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

SUBDIRS=data
